﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Communergy.Common
{
    public class DateTimeHelper
    {
        public static DateTime CreateCleanDateTime(DateTime incomingDateTime)
        {
            var cleanDateTime = new DateTime (
                incomingDateTime.Year, 
                incomingDateTime.Month,
                incomingDateTime.Day,
                incomingDateTime.Hour,
                incomingDateTime.Minute,
                incomingDateTime.Second, 
                incomingDateTime.Millisecond,
                DateTimeKind.Utc);
            return cleanDateTime;
            
        }
    }
}
